package edu.scau.cxq.gp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @description 存储用户信息
 * @return
 * @author TLC
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @TableField("user_account")
    private String userAccount;

    @TableField("user_passwd")
    private String userPasswd;

    @TableField("salt")
    private String salt;

    @TableField("user_name")
    private String userName;

    @TableField("user_type")
    private Integer userType;

    @TableField("user_place")
    private String userPlace;

    @TableField("user_tel")
    private String userTel;

    @TableField("user_email")
    private String userEmail;

    @TableField("user_birth")
    private LocalDateTime userBirth;

    @TableField("user_hidden")
    private Integer userHidden;

    @TableField("user_avatar")
    private String userAvatar;
}
